home *** CD-ROM | disk | FTP | other *** search
/ Java 1996 August / Java - Summer 1996.iso / kaffe-0.2 / kaffe / code.h < prev    next >
C/C++ Source or Header  |  1996-02-12  |  713b  |  37 lines

  1. /*
  2.  * code.h
  3.  * Define a code module.
  4.  *
  5.  * Copyright (c) 1996 Systems Architecture Research Centre,
  6.  *           City University, London, UK.
  7.  *
  8.  * See the file "license.terms" for information on usage and redistribution
  9.  * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
  10.  *
  11.  * Written by Tim Wilkinson <tim@sarc.city.ac.uk>, February 1996.
  12.  */
  13.  
  14. #ifndef __code_h
  15. #define __code_h
  16.  
  17. #include "exception.h"
  18.  
  19. union _attribute_info;
  20.  
  21. typedef struct _Code {
  22.     u2    max_stack;
  23.     u2    max_locals;
  24.     u4    code_length;
  25.     u1*    code;
  26.     u2    exception_table_length;
  27.     exception* exception_table;
  28.     u2    attribute_count;
  29.     union _attribute_info* attributes;
  30. } Code;
  31.  
  32. struct _methods;
  33.  
  34. void    addCode(struct _methods*, uint32, classFile*);
  35.  
  36. #endif
  37.